package com.aspose.cells;

class zbms extends zq {
   private Row c;
   private int d = -1;

   zbms(Cells var1, RowCollection var2) {
      super(var1, var2);
   }

   public int b() {
      return this.d;
   }

   public void b(int var1) {
      this.d = var1;
   }

   public void a() {
      this.c = null;
   }

   public Row a(int var1) {
      return this.c != null && this.c.a.h() == var1 ? this.c : null;
   }

   public Row a(int var1, boolean var2) {
      this.d = var1;
      if (this.c != null && this.c.a.h() == this.b.c.a(var1)) {
         this.c.a.f(var1);
         return this.c;
      } else {
         this.c = new Row(this.a, this.b, this.b.c.f(var1), var2);
         return this.c;
      }
   }

   public Row a(int var1, boolean var2, boolean var3, boolean var4) {
      if (this.c != null && this.c.a.h() == var1) {
         return this.a(this.c, var2, var3) ? this.c : null;
      } else {
         this.c = this.b(var1, var2, var3, var4);
         return this.c;
      }
   }
}
